package com.rcl.himalaya_kotlin.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter

/*
 * class title: 
 * Author by RenChunLin, Email 18957806320@163.com, Date on 2020/9/2.
 * PS: Not easy to write code, please indicate.
 */
class TitleFragmentPagesAdapter(val fmList: List<Fragment>, fm: FragmentManager) :
    FragmentStatePagerAdapter(fm) {
    override fun getCount(): Int = fmList.size

    override fun getItem(position: Int) = fmList[position]
}